using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class ErrorInfo : IExtensibleDataObject
	{
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public ResourceInfo[] ResourceList
		{
			get;
			set;
		}
		[DataMember]
		public string ErrorCode
		{
			get;
			set;
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public ErrorInfo()
		{
			this.ResourceList = new ResourceInfo[0];
			this.ErrorCode = "";
		}
		public ErrorInfo(string errorCode, ResourceInfo[] resourceList)
		{
			this.ResourceList = resourceList;
			this.ErrorCode = errorCode;
		}
	}
}
